
import cn.tml.innermost.DomainApplication;
import io.lettuce.core.api.StatefulRedisConnection;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.Resource;
import java.net.SocketAddress;

/**
 * @author welsir
 * @version 1.0
 * @description: TODO
 * @date 2022/10/17 23:30
 */
@SpringBootTest(classes = DomainApplication.class)
public class test {

    @Resource
    RedisTemplate redisTemplate;

    @Test
    public void testLogin() {
        redisTemplate.opsForValue().set("name","dct");



    }
}
